<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>主导航页面</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
            text-align: center;
            background-color: #f5f5f5;
        }
        h1 {
            color: #2c3e50;
            margin-bottom: 30px;
        }
        .page-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 40px;
        }
        .page-card {
            background-color: white;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            transition: transform 0.3s, box-shadow 0.3s;
            cursor: pointer;
        }
        .page-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        .page-card h2 {
            color: #3498db;
            margin-top: 0;
        }
        .page-card p {
            color: #7f8c8d;
        }
        .page-icon {
            font-size: 40px;
            margin-bottom: 15px;
            color: #3498db;
        }
    </style>
</head>
<body>
    <h1>Are you ready</h1>
    <p></p>
    
    <div class="page-container">
        <div class="page-card" onclick="navigateTo('page1.html')">
            <div class="page-icon">📊</div>
            <h2>页面测试</h2>
            <p>这是个测试哦</p>
        </div>
        
        <div class="page-card" onclick="navigateTo('Dynamicsky/index.html')">
            <div class="page-icon">🐱</div>
            <h2>猫咪老师</h2>
            <p>喵~</p>
        </div>
        
        <div class="page-card" onclick="navigateTo('Save-Water/index.html')">
            <div class="page-icon">⚙️</div>
            <h2>Save-Water</h2>
            <p> 保护地球 </p>
        </div>
        
        <div class="page-card" onclick="navigateTo('hex_base64.html')">
            <div class="page-icon">📱</div>
            <h2>hex2base64工具</h2>
            <p>转换工具</p>
        </div>
    </div>
    
    <script>
        // 直接跳转到目标页面（不保留历史记录）
        function navigateTo(pageUrl) {
            // 使用location.replace()确保不能返回
            //window.location.replace(pageUrl);
            
            // 或者使用普通跳转（可以返回）
             window.location.href = pageUrl;
        }
        
        // 或者使用按钮点击事件（如果您更喜欢按钮样式）
        document.addEventListener('DOMContentLoaded', function() {
            // 可以在这里添加其他初始化代码
        });
    </script>
</body>
</html>
